<template name="comment">
	<div class="list-block media-list">
	{{#if merchantComment}}
		<ul>
			{{#each merchantComment}}
			<li class="ft-movielist-item" style="background:#fff">
					<div class="item-content x7-comment-content">
						<div class="item-media"><img src="{{merchant.list_image.path}}" style="vertical-align: center" width="40" height="40">
						</div>
						<div class="item-inner">
							<div class="item-title-row">
								<div class="item-title ng-binding">{{merchant.name}}</div>
							</div>
							<div class="item-subtitle ng-binding">
								{{> commentStars}}
							</div>
							<div class="item-text ng-binding">
								{{context}}
							</div>
						</div>
					</div>
					<!-- <div class="item-content x7-comment-subcontent" >
						<div class="item-inner x7-comment-subinner">
							<span class="x7-comment-time">{{created_at}}</span><button id="x7-pay" class="x7-comment-button">删除</button>
						</div>
					</div> -->
			</li>
			{{/each}}
		</ul>
		{{else}}
		{{>noData}}
		{{/if}}
	</div>
</template>

<template name="commentStars">
	{{#if eq stars 5}}
		{{> star stars=5 s_size=13}}
	{{/if}}
	{{#if eq stars 4}}
		{{> star stars=4 s_size=13}}
	{{/if}}
	{{#if eq stars 3}}
		{{> star stars=3 s_size=13}}
	{{/if}}
	{{#if eq stars 2}}
		{{> star stars=2 s_size=13}}
	{{/if}}
	{{#if eq stars 1}}
		{{> star stars=1 s_size=13}}
	{{/if}}
</template>
